package com.xc.taoku.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.util.Date;

@Data
public class Product {

    @TableId
    Integer pid;
    String pname;
    Double marketPrice;
    Double shopPrice;
    String pimage;
    Date pdate;
    Integer isHot;
    String pdesc;
    Integer pflag;
    Integer cid;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Product product = (Product) o;

        if (pid != null ? !pid.equals(product.pid) : product.pid != null) return false;
        return pname != null ? pname.equals(product.pname) : product.pname == null;
    }


}
